package com.webcamtracker.video.utils;

import javax.media.CaptureDeviceManager;
import javax.media.Format;
import java.util.Vector;
import java.util.logging.Logger;


public class JMFUtils {
    public static Logger log = Logger.getLogger("JMFUtils");

    public static Vector findCaptureDevice(Format format) {
        Vector devices;
        // Find devices for format
        devices = CaptureDeviceManager.getDeviceList(format);
        if (devices.isEmpty()) {
            return null;
        }
        // Pick the first device
        return devices;

    }


}
